package com.shop.clientorder.consumer;

import org.springframework.amqp.rabbit.annotation.Queue;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @Author：作者姓名
 * @Package：com.shop.clientorder.consumer
 * @Project：e-commerce-services
 * @name：ADelayedQueueUtil
 * @Date：2024/7/14 9:48
 */
@Component
public class ADelayedQueueUtil {
    @RabbitListener(queuesToDeclare = @Queue("AAAAA"))
    public void aa(int i){
        System.out.println("消费成功"+i);
    }
}
